import axios from '../http/request'

// 获取所有的考试类型
function getExamType() {
    return axios.get("/exam/examType")
}

// 获取所有的课程
function getSubject() {
    return axios.get("/exam/subject")
}

// 获取所有的试题类型
function getQuestionsType() {
    return axios.get("/exam/getQuestionsType")
}

// 添加试题接口
function postQuestions(params) {
    return axios.post("/exam/questions", params)
}

export {
    getExamType,
    getSubject,
    getQuestionsType,
    postQuestions
}